From series on YouTube: https://www.youtube.com/watch?v=N9fDIAflCMY.
In [1]:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
In [2]:
greyhounds = 500
labs = 500
In [3]:
grey_height = 28 + 4 * np.random.randn(greyhounds)
lab_height = 24 + 4 * np.random.randn(labs)
In [4]:
# Note on np.random.nrand()
# distribution of mean 0 and variance 1
# returns number of integers passed
np.random.randn(4)
Out[4]:
In [5]:
grey_height[:5]
Out[5]:
In [6]:
plt.hist([grey_height, lab_height], stacked=True, color=['r', 'b'])
plt.show()
Good features are:
A good blog post on ML: https://blog.bigml.com/2013/02/15/everything-you-wanted-to-know-about-machine-learning-but-were-too-afraid-to-ask-part-one/